Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Occurrence Lists not picking up TimeWithZone identifier

#1

This was reported by Adam Williams

The problem now is exdate:

Given s is a Series, which has_many Event::Exceptions (a model which represents changes to Event instances):

    s.exceptions.each do |e|
      exception_date_time = Time.zone.local(
        e.occurs_on.year, e.occurs_on.month, e.occurs_on.day,
        s.originating_event.starts_at.hour,
        s.originating_event.starts_at.min)
      ievent.add_exdate exception_date_time
      ical.event do |ievent_exception|
        build_event(ievent_exception, Event::Occurrence.new(s,

e.occurs_on, e))

      end unless e.deletion?
    end

As you can see, I am utilizing Time.zone to create an
ActiveSupport::TimeWithZone instance that has the same date as the
Event::Exception, but the hour and minute of the originating Event in
the Series. It is my understanding that this is how exdate works - the
exact date and time in the recurrence that is an exception to the rrule.

Here is what is produced:

BEGIN:VEVENT EXDATE:20081126T183000Z DTEND;TZID=America/New_York;VALUE=DATE-TIME:20081119T193000 DTSTART;TZID=America/New_York;VALUE=DATE-TIME:20081119T183000 RRULE:FREQ=WEEKLY;UNTIL=20081218;BYDAY=WE;WKST=su END:VEVENT

Notice that the EXDATE is not respecting the time zone of the
ActiveSupport::TimeWithZone instance.

Reported by Rick DeNatale · May 19th, 2009 @ 12:39 PM

State: resolved
Milestone: 0.0.8
Assigned to: Rick DeNatale Rick DeNatale

Activity

  1. Rick DeNatale
    Rick DeNatale
    • Milestone set to 0.0.8

    May 19th, 2009 @ 01:52 PM

  2. Rick DeNatale
    Rick DeNatale
    • State changed from new to resolved

    May 19th, 2009 @ 04:29 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.